<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/21
 * Time: 14:29
 */

namespace app\api\model;



class Appointment extends BaseModel
{

    protected $hidden = ['create_time','update_time','description','uid','reason'];

    public function getStateAttr($value)
    {
        $state = [0=>'等待商家确认',1=>'未使用',2=>'已完成',3=>'商家受理中',4=>'订单关闭'];
        return $state[$value];
    }
}